package com.baiyang.app.ui.read;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;

import com.alibaba.fastjson.JSONObject;


public class ReadPageViewModel extends ViewModel {

    private MutableLiveData<JSONObject> contentResult;
    private MutableLiveData<JSONObject> followStateResult;
    private MutableLiveData<JSONObject> followResult;

    public ReadPageViewModel(){
        this.contentResult = new MutableLiveData<>();
        this.followStateResult = new MutableLiveData<>();
        this.followResult = new MutableLiveData<>();
    }

    public void setContentResult(JSONObject result){
        this.contentResult.postValue(result);
    }

    public LiveData<JSONObject> getContentResult(){
        return contentResult;
    }

    public void setFollowStateResult(JSONObject result){
        this.followStateResult.postValue(result);
    }

    public LiveData<JSONObject> getFollowStateResult(){
        return followStateResult;
    }

    public void setFollowResult(JSONObject result){
        this.followResult.postValue(result);
    }

    public LiveData<JSONObject> getFollowResult(){
        return followResult;
    }

}
